package com.atguigu.gulimall.member.service;

import com.atguigu.gulimall.member.exception.PhoneException;
import com.atguigu.gulimall.member.exception.UserNameException;
import com.atguigu.gulimall.member.vo.SocialUser;
import com.atguigu.gulimall.member.vo.UserLoginVo;
import com.atguigu.gulimall.member.vo.UserRegVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author haha
 * @email sunlightcs@gmail.com
 * @date 2023-11-21 16:10:32
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(UserRegVo vo);

    void checkUserNameUnique(String userName) throws UserNameException;

    void checkPhoneUnique(String phone) throws PhoneException;

    MemberEntity login(UserLoginVo vo);

    MemberEntity oauthlogin(SocialUser vo);
}

